var ue = UE.getEditor('container');
$("#adtvmout").click(function () {
    window.location.href = '/html/index';
});

$("#adtvmadd").click(function () {
    var data = $("#adtvminfo").serialize();
    var id = $("input[name='id']").val();
    $.ajax({
        url: '/html/save',
        type: 'POST',
        data: data,
        dataType: 'JSON',
        cache: false,
        success: function (json) {
            if (json.code == 2000) {
                    window.location.href = '/html/index'
            } else {
                dshow(json.message);
            }
        }
    });
});